<?php

namespace Tests;


use XWX\Common\H;
use XWX\Common\XArray\XArray;
use XWX\Common\XReturn;

class test_array extends TestBase
{
    function test_1010()
    {
        $arr = [
            [
                'a' => 1,
                'b' => 1,
                'c' => 3,
            ],
            [
                'a' => 2,
                'b' => 3,
                'c' => 1,
            ],
            [
                'a' => 3,
                'b' => 2,
                'c' => 2,
            ]
        ];


        H::funcArrayOrderByKey($arr, 'a', SORT_DESC);
        $this->funcLog($arr);
        H::funcArrayOrderByKey($arr, 'b', SORT_ASC);
        $this->funcLog($arr);
        H::funcArrayOrderByKey($arr, 'c', SORT_ASC);
        $this->funcLog($arr);
    }
}